Security page refactor#2426
Conversation
|
@claude review |
|
Claude finished @malinskibeniamin's task in 3m 27s —— View job Code Review: Security page refactorTasks
SummaryGood overall refactor — moving from full-page routes to dialogs for create/edit flows is a cleaner UX pattern, and the shared 🐛 Bugs1. Broken E2E test: The test clicks // user-management.spec.ts:72-80 — references deleted route + removed testId
await page.getByTestId('create-acls-button').click();
await expect(page).toHaveURL(/\/security\/acls\/create/);Similarly, 2. Non-reactive role membership lookup [
// use-principal-permissions.ts:105
for (const [roleName, members] of rolesApi.roleMembers) { // ← not reactive3. Dead code [ The return value of // user-details.tsx:48
formatMechanism(currentUser?.mechanism); // result is unused
|
- Use ConnectError.from() for structured error messages in role creation - Include member name in remove-from-role toast notification - Replace raw <h2> with Heading registry component in acls-card - Use pluralizeWithNumber() for ACL count summary text - Use <Empty> component for inline no-ACLs state in PrincipalRow - Improve empty states in roles and users tabs with <Empty> registry component - Navigate to user details after creation in E2E security-page helper
SearchField renders with placeholder "Filter by name" (not the regexp variant from UsersTabNew) in the e2e environment. Also drops the no-op "Get filter input" step and renumbers accordingly.
UsersTabOriginal (feature-flag off) stores the search query under the key 'q' via useQueryStateWithCallback, not 'name' as UsersTabNew does.
e0795b1 to
d1472d4
Compare
d1472d4 to
a74f7b7
Compare
71b5d70 to
0998e18
Compare
0998e18 to
92cbdcd
Compare
7557833 to
5204f78
Compare
5204f78 to
e46c993
Compare
…sistent search input, uniform password button sizes, hide roles on Kafka - add-acl-dialog: gate SUBJECT and REGISTRY resource types behind api.isRedpanda - permissions-list-tab-new: replace raw <input> with ListLayoutSearchInput for consistent height - user-create: set size="icon" on CopyButton to match adjacent refresh button - user-details-new: only render UserRolesCardNew when featureRolesApi (RBAC) is enabled

Uh oh!
There was an error while loading. Please reload this page.